testing
	<?php

		//echo substr($_FILES['userTextFile']['name'], 0,strrpos($_FILES['userTextFile']['name'],'.'));
		
		
		
		
		
		
		//Make sure text file is a text file
	   if(  $_FILES['conjunctionTextFile']['type'] =="text/plain" ||  $_FILES['userTextFile']['type'] =="text/plain"){

			/*
				echo $_FILES['conjunctionTextFile']['tmp_name'];
				echo "<br>";
				echo $_FILES['userTextFile']['tmp_name'];
				echo "<br>";
				//echo $_POST['xmlHeader'];
				echo "<br>";
				echo str_replace(" ","|",substr($_FILES['userTextFile']['name'], 0,strrpos($_FILES['userTextFile']['name'],'.')));
				echo "<br>";
			*
			 
			*  java -jar javafilename.jar  filename.txt conjuntion.txt xmlheader|Name
			*/
		 
		 
		 
			extract( $_POST );
			
			if($xmlHeader == ""){
				$jarCode = "java -jar \"createJar.jar\" \"" .
					$_FILES['conjunctionTextFile']['tmp_name'] . "\"" . " \"" . 
					$_FILES['userTextFile']['tmp_name'] . "\" \"" . 
					str_replace(" ","|",substr($_FILES['userTextFile']['name'], 0,strrpos($_FILES['userTextFile']['name'],'.'))) ."\"";
			}
			else{
				$jarCode = "java -jar \"createJar.jar\" \"" .
					$_FILES['conjunctionTextFile']['tmp_name'] . "\"" . " \"" . 
					$_FILES['userTextFile']['tmp_name'] . "\" \"" . 
					$xmlHeader ."\"";
			}
			
			//echo $jarCode;
			//echo "<br>";
			
			
			//Run Java Application
			exec($jarCode,$output);
			$saveMe = $output;
			//echo "<br>";
			//echo print_r($output);
			//echo "<br>";
			
			//Error System 
			if($output[0] == "0"){
				echo "Successful Conjunction Upload<br>";
				if($output[1] == "0"){
					echo "Successful Text Upload<br>";
					if($output[2] == "0"){
						echo "Successful Parse <br>";
					}
					else{echo "Fail Parse <br>";}
				}
				else{echo "Failed Text Upload<br>";}
			}
			else{echo "Failed Conjunction Upload<br>";}
			$temp =  str_replace("<",'&lt;',$output);
			echo "<font size='3'>";
		   
			//echo implode("<BR>",$temp);
			//
		   
		   
		   
			//Out put data
			/*for ($i = 0; $i <= count($temp)-1; $i++) {
				if($i>2){
					echo $temp[$i] . "<BR>";

				}
			}
			echo "</font>";*/
		}
	
	?>
	
	<!--
	<table border ="5"><TR>
	<form name="noName" action =save.php method=POST>
	 <td><input type="hidden" name="id" value=" " id="<?php $saveMe; ?>"/>Save me Please </td>
	 <TD><input type ="submit" name="Save" value=" SAVE"/></td>
	</tr>
	</form>
	</table>-->